package com.example.motion.config;

public class WechatApiUtils {
    private final static String APPID = "wx26305becc4e41a43";
    private final static String SECRET = "555c8b200f64f9c4ab5a8b4717879593";



    public static String  jscode2session(String jscode){
        String url = "https://api.weixin.qq.com/sns/jscode2session?appid="+APPID+"&secret="+SECRET+"&js_code="+jscode+"&grant_type=authorization_code";
        String result=HttpsUtils.doGet(url);
        System.out.println(result);
        return result;
    }
}
